3462d9bbb5addb82d6ebd5f7143aa6d376ea3122,bundles/extensions/serviceusermapper/src/main/java/org/apache/sling/serviceusermapping/impl/ServiceUserMapperImpl.java,ServiceUserMapperImpl,bindAmendment,#MappingConfigAmendment#Map#,174
Before Change
final Long key = (Long) props.get(Constants.SERVICE_ID);
synchronized ( this.amendments ) {
amendments.put(key, amendment);
this.updateMappings();
}
}
After Change
RegistrationSet registrationSet = null;
synchronized ( this.amendments ) {
amendments.put(key, amendment);
registrationSet = this.updateMappings();
}
executeServiceRegistrations(registrationSet);
}
protected void unbindAmendment(final MappingConfigAmendment amendment, final Map<String, Object> props) {